import Http from "@/utils/request";

export const addComment = (score: number, comment: string, worker: number, orderId: number, orderType: boolean) => Http.post<BaseResponse<string>, { score: number, comment: string, worker: number, orderId: number, orderType: boolean }>({ url: "/comment/add", data: { score, comment, worker, orderId, orderType } })

export const hasCommented = (orderId: number, orderType: boolean) => Http.get<BaseResponse<boolean>, { orderId: number, orderType: boolean }>({ url: `/comment/hasCommented/${orderId}?`, params: { orderType } })
